﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WaveFlow.aspx.cs" Inherits="WMS6.Web.Outbound.WaveFlow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>WaveFlow</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newWaveFlow()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "WaveFlow.aspx?from=" + from;
            return false;
        }
        
    </script>

</head>
<body>
    <form id="F7161" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblWaveFlow" runat="server" CssClass="label_header" Text="波次流程" meta:resourcekey="lblWaveFlow"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            CausesValidation="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnNew %>"
                            AccessKey="n" OnClientClick="newWaveFlow();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnSave %>"
                            AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnDelete %>"
                            AccessKey="d" OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Enabled="false" Text="<%$Resources:ButtonResource,btnCopy%>"
                            AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblWaveFlowID" runat="server" CssClass="label" Text="波次流程" meta:resourcekey="lblWaveFlowID"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtWaveFlowID" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="说明" meta:resourcekey="lblDescr"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2">
                            <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="是否启用" Checked="true"
                                meta:resourcekey="chkIsActive" />
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:CheckBox ID="chkSystemCreated" runat="server" CssClass="checkbox" Text="系统创建"
                                Enabled="false" meta:resourcekey="chkSystemCreated" />
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                            Enabled="false" OnClick="btnAddDetail_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                            Enabled="false" OnClick="btnDeleteDetail_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="gvWaveFlow" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                                AllowPaging="True" CssClass="gridview" Width="350px" DataKeyNames="LineID" OnRowDataBound="gvWaveFlow_RowDataBound"
                                OnSorting="gvWaveFlow_Sorting" meta:resourcekey="gvWaveFlow">
                                <FooterStyle CssClass="GridViewFooterStyle" />
                                <PagerStyle CssClass="GridViewPageStyle" />
                                <RowStyle CssClass="GridViewRowStyle" />
                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                <Columns>
                                    <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                        <ItemStyle CssClass="GridViewRowWidth_40" />
                                    </asp:BoundField>
                                    <asp:TemplateField meta:resourcekey="TemplateField2">
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvWaveFlow');"
                                                meta:resourcekey="CheckBox1Resource3" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource3" />
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvWaveFlow');"
                                                meta:resourcekey="CheckBox2Resource3" />
                                        </FooterTemplate>
                                        <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                        <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="行号" FooterText="行号" SortExpression="LineID">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("LineID") %>' NavigateUrl='<%# FormatUrl("~/Outbound/WaveFlowDetail.aspx?from=list&ID={0}&SeqNO={1}&type=Edit",Eval("WaveFlowID").ToString(),Eval("LineID").ToString()) %>'
                                                Target="_self" CssClass="hyperlink"></asp:HyperLink>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="WaveStep" HeaderText="步骤" FooterText="步骤" SortExpression="WaveStep"
                                        meta:resourcekey="WaveStep">
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="IsActive" HeaderText="是否启用" FooterText="是否启用" SortExpression="IsActive"
                                        meta:resourcekey="IsActive">
                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                    </asp:BoundField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr height="30px">
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <input id="hdnWaveFlowID" runat="server" type="hidden" />
        <input id="hdnLineID" runat="server" type="hidden" />
        <input type="hidden" id="hdnFrom" runat="server" />
        <input id="hdnFlag" runat="server" type="hidden" value="0" />
        <input id="hdnCopy" runat="server" type="hidden" value="0" />
        <input type="hidden" id="hdnActionID" runat="server" />
    </div>
    </form>
</body>
</html>
